package swtElements;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.widgets.Label;

public class MyLabel {
	
	Label label;
	
	public MyLabel(MyComposite client, String text, boolean red){
		if(red == false){
			this.label = new Label(client.getComposite(), SWT.NONE);
			label.setText(text);
		}else{
			this.label = new Label(client.getComposite(), SWT.NONE);
			label.setText(text);
			Color colorRed = new Color(null, 255, 0, 0);
			label.setForeground(colorRed);
		}
	}

}
